package org.yaac.server.egql.evaluator.function;

import org.yaac.server.egql.evaluator.EvaluationResult;
import org.yaac.server.egql.exception.EGQLException;
import org.yaac.server.egql.processor.ProcessData.ProcessDataRecord;

/**
 * @author Max Zhu (thebbsky@gmail.com)
 *
 */
public class NullFunction extends Function {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public void validate() throws EGQLException {
		FunctionUtil.ensureParamSize(ops, 0);
	}

	@Override
	public EvaluationResult evaluate(ProcessDataRecord record) {
		return new EvaluationResult(null);
	}
}
